package cn.Robbery.org.service.impl;

import cn.Robbery.basic.service.impl.BaseServiceImpl;
import cn.Robbery.basic.util.PageList;
import cn.Robbery.org.domain.Department;
import cn.Robbery.org.mapper.DepartmentMapper;
import cn.Robbery.org.query.DepartmentQuery;
import cn.Robbery.org.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class DepartmentServiceImpl extends BaseServiceImpl<Department>
        implements IDepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> getDepTree() {
        return departmentMapper.getDepTree();
    }
}
